//
//  Account.m
//  aiyu_2
//
//  Created by ibokan on 14-10-12.
//  Copyright (c) 2014年 ibokan. All rights reserved.
//





#import "Account.h"
#import "config.h"
@implementation Account
-(id)initWithCoder:(NSCoder *)decoder
{
    if (self=[super init]) {
        self.uid=[decoder decodeObjectForKey:kuid];
        self.cardType=[decoder decodeObjectForKey:kcardType];
        self.custIdent=[decoder decodeObjectForKey:kcustIdent];
        self.cardNo=[decoder decodeObjectForKey:kcardNo];
        self.custName=[decoder decodeObjectForKey:kcustName];
        self.custIType=[decoder decodeObjectForKey:kcustIType];
        self.custPhone=[decoder decodeObjectForKey:kcustPhone];
        self.custAddr=[decoder decodeObjectForKey:kcustAddr];
        self.custSex=[decoder decodeObjectForKey:kcustSex];
        self.modiDate=[decoder decodeObjectForKey:kmodiDate];
        self.pwd=[decoder decodeObjectForKey:kpwd];
        self.YKTCardBalance=[decoder decodeObjectForKey:kYKTCardBalance];
        self.YKTCardJF=[decoder decodeObjectForKey:kYKTCardJF];
        self.HaveYKTCard=[decoder decodeObjectForKey:kHaveYKTCard];
        self.NickName=[decoder decodeObjectForKey:kNickName];
        self.HeadImg=[decoder decodeObjectForKey:kHeadImg];
        self.WeXinId=[decoder decodeObjectForKey:kWeXinId];
        self.Email=[decoder decodeObjectForKey:kEmail];

        self.xhtpwd=[decoder decodeObjectForKey:kxhtpwd];
         self.CheckTime=[decoder decodeObjectForKey:kCheckTime];
         self.WorkGuid=[decoder decodeObjectForKey:kWorkGuid];
        
    }
    return self;
}

-(void)encodeWithCoder:(NSCoder *)encoder{
    [encoder encodeObject:self.uid forKey:kuid];
    [encoder encodeObject:self.cardType forKey:kcardType];
    [encoder encodeObject:self.custIdent forKey:kcustIdent];
    [encoder encodeObject:self.cardNo forKey:kcardNo];
    [encoder encodeObject:self.custName forKey:kcustName];
    [encoder encodeObject:self.custIType forKey:kcustIType];
    [encoder encodeObject:self.custPhone forKey:kcustPhone];
    [encoder encodeObject:self.custAddr forKey:kcustAddr];
    [encoder encodeObject:self.custSex forKey:kcustSex];
    [encoder encodeObject:self.modiDate forKey:kmodiDate];
    [encoder encodeObject:self.pwd forKey:kpwd];
    [encoder encodeObject:self.YKTCardBalance forKey:kYKTCardBalance];
    [encoder encodeObject:self.YKTCardJF forKey:kYKTCardJF];
    [encoder encodeObject:self.HaveYKTCard forKey:kHaveYKTCard];
    [encoder encodeObject:self.NickName forKey:kNickName];
    [encoder encodeObject:self.HeadImg forKey:kHeadImg];
    [encoder encodeObject:self.WeXinId forKey:kWeXinId];
    [encoder encodeObject:self.Email forKey:kEmail];
    [encoder encodeObject:self.xhtpwd forKey:kxhtpwd];
    [encoder encodeObject:self.WorkGuid forKey:kWorkGuid];
    [encoder encodeObject:self.CheckTime forKey:kCheckTime];

}

@end
